package code.structure.module.configs.data.task
{
	/**
	 * 任务配置表
	 * @author CYoung
	 * 2014-7-27下午3:17:17
	 */
	public class TaskConfigData
	{
		public var id:String;
		/** 任务名字 */
		public var taskName:String;
		/** 任务描述 */
		public var taskDec:String;
		/** 大任务类型  */		
		public var type:int;
		/** 子任务数组  */		
		public var subTaskList:Array;
		/** 奖励 [{'id':101,'num':100},{'id':102,'num':200}] */		
		public var rewardList:Object;
		/** 触发解锁等级  */		
		public var unlockLevel:int;
		/** 完成解锁下一个任务  */		
		public var nextId:Array;
		/** 前置任务id */		
		public var proId:int;
		/** 任务图标id */		
		public var iconId:int;
		/** npcId */		
		public var npcId:int;
		
		public function TaskConfigData(data:Object)
		{
			id = data.id;
			taskName = data.taskName;
			taskDec = data.taskDec;
			type = data.type;
			subTaskList = data.subTaskList as Array;
			rewardList = data.rewardList as Array;
			unlockLevel = data.unlockLevel;
			nextId = String(data.nextId).split(",");
			iconId = data.iconId;
			npcId = data.npcId;			
		}
		
	}
}